<template>
  <div class="desc-item">
    <div class="title" v-if="showTitle">{{ item.title }}</div>
    <div class="content" :style="{ backgroundColor: backgroundColor }">
      {{ item.content }}
    </div>
  </div>
</template>

<script setup>
import { ref } from 'vue';

const props = defineProps({
  item: {
    type: Object,
    default() {
      return {};
    },
  },
  backgroundColor: {
    type: String,
    default: '#F5F7FA',
  },
  showTitle: {
    type: Boolean,
    default: true,
  },
});
</script>

<style scoped lang="scss">
.desc-item {
  .title {
    font-weight: bold;
    font-size: 34px;
    color: #333333;
    line-height: 48px;
    margin-bottom: 20px;
  }
  .content {
    padding: 32px;
    border-radius: 8px;
    font-size: 26px;
    color: #333333;
    line-height: 44px;
  }
}
</style>
